
package com.sxyjhh.service.insert_person_option_certificate;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

import com.sxyjhh.utils.util.wsUtil.EncryptUtil;
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;


/**
 * This class was generated by Apache CXF 3.2.2
 * 2018-03-27T16:12:24.844+08:00
 * Generated source version: 3.2.2
 *
 */
public final class InsertPersonOptionCertificate_InsertPersonOptionCertificatePort_Client {

    private static final QName SERVICE_NAME = new QName("http://insert_person_option_certificate.service.www.mohurd.gov.cn/", "InsertPersonOptionCertificateService");

    private InsertPersonOptionCertificate_InsertPersonOptionCertificatePort_Client() {
    }

    public static String push(String data) {
        URL wsdlURL = InsertPersonOptionCertificateService.WSDL_LOCATION;
        //定义JaxWs的代理工厂
        JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
        factory.setServiceClass(com.sxyjhh.service.insert_person_option_certificate.InsertPersonOptionCertificate.class);
        factory.setAddress(wsdlURL.toString());
        com.sxyjhh.service.insert_person_option_certificate.InsertPersonOptionCertificate insert = (com.sxyjhh.service.insert_person_option_certificate.InsertPersonOptionCertificate) factory.create();


        String result = insert.insertPersonOptionCertificate(EncryptUtil.encryptString(data), "61000001", EncryptUtil.encryptString("pgktJYco%UcHl@ZB"));
        //String result = insert.insertPersonOptionCertificate(EncryptUtil.encryptString(data), "admin1", EncryptUtil.encryptString("1234"));
        return result;
    }
}
